package com.xuecheng.api.course;

import com.xuecheng.framework.domain.course.ext.CourseView;
import com.xuecheng.framework.domain.course.response.CoursePublishResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;

@Api(value = "门户课程详情页接口",tags = {"门户课程详情页查询接口"})
public interface CourseViewControllerApi {
    /**
     * 门户课程页详细信息查询,包括课程信息,课程图片,营销计划,课程计划
     * @param id 课程id
     * @return 封装好的实体类
     */
    @ApiOperation("门户课程页详细信息查询,包括课程信息,课程图片,营销计划,课程计划")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id",value = "课程id",required = true, paramType = "path")
    })
    CourseView getCourseView(String id);

    /**
     * 课程预览接口
     * @param id 课程id
     * @return 远程调用cmd获取到的课程预览url
     */
    @ApiOperation("课程预览接口")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id",value = "课程id",required = true, paramType = "path")
    })
    CoursePublishResult preview(String id);
}
